export const throttle = (fn, delay = 100) => {
    let timer = null
    return function () {
        clearTimeout(timer)
        timer = setTimeout(function () {
            fn()
        }, delay)
    }
}
